import request from '@/router/axios';

//模板详情
export const getTemplate = (params) => {
  return request({
    url: '/api/hg-public/plantmpl/detail',
    method: 'get',
    params: {
      ...params,
    }
  })
}

//新增
export const addTemplate = (row) => {
  return request({
    url: '/api/hg-public/plantmpl/save',
    method: 'post',
    data: row
  })
}



//更新 
export const updateTemplate = (row) => {
  return request({
    url: '/api/hg-public/plantmpl/update',
    method: 'post',
    data: row
  })
}

